package RLK_JPA;

public class Vulnerable_02 {
    public class ResourceLeakJpaEntityManager {

        public void test() {
            EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("Books");
            EntityManager entityManager = entityManagerFactory.createEntityManager();
            entityManagerFactory.close();
        }
    }
}
